<section class="vbox">
	<section class="w-f-md scrollable">
		<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
			<nav class="nav-primary hidden-xs">
				<ul class="nav" data-ride="collapse">

					<li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted">
						系统菜单
					</li>
					<?php if(!empty($this->params['menus'])):?>


						<?php foreach($this->params['menus'] as $key=>$menus):?>
								<?php if(false == empty($menus['url'])){?>
									<li>
										<a href="<?php echo \Yii::$app->urlManager->createUrl($menus['url']); ?>" class="auto" target="mainFrame" onclick="event.stopPropagation();">
											<i class="<?php echo $menus['icon'];?> <?php echo $menus['icon_bg'];?>"></i>
											<span class="font-bold"><?php echo $menus['name'];?></span>
										</a>
									</li>
								<?php }else{?>
									<li <?php if($key == 0): ?>class="active"<?php endif;?>>
										<a href="#" class="auto">
											<span class="pull-right text-muted">
												<i class="fa fa-angle-left text"></i>
												<i class="fa fa-angle-down text-active"></i>
											</span>
											<i class="<?php echo $menus['icon'];?> <?php echo $menus['icon_bg'];?>">
											</i>
											<span><?php echo $menus['name'];?></span>
										</a>
										<?php if(!empty($menus['childMenu'])):?>

											<ul class="nav dk text-sm">
												<?php foreach($menus['childMenu'] as $childMenus):?>
													<li >
														<?php if(!empty($childMenus['childMenu'])) {?>
															<a href="#menu<?php echo $childMenus['id']; ?>" class="auto">
																<span class="pull-right text-muted">
																  <i class="fa fa-angle-left text"></i>
																  <i class="fa fa-angle-down text-active"></i>
																</span>
																<i class="fa fa-angle-right text-xs"></i>

														<?php }else{?>
															<a href="<?php echo \Yii::$app->urlManager->createUrl($childMenus['url']); ?>" class="auto" target="mainFrame" onclick="event.stopPropagation();">
																<i class="fa fa-angle-right text-xs"></i>
														<?php }?>
															<span><?php echo $childMenus['name'];?></span>
															</a>
														<?php if(!empty($childMenus['childMenu'])):?>
															<ul class="nav dker">
																<?php foreach($childMenus['childMenu'] as $childMenu):?>
																	<li >
																		<a href="<?php echo \Yii::$app->urlManager->createUrl($childMenu['url']); ?>">
																			<i class="fa fa-angle-right"></i>
																			<span><?php echo $childMenu['name'];?></span>
																		</a>
																	</li>
																<?php endforeach;?>
															</ul>
														<?php endif;?>
													</li>
												<?php endforeach;?>


											</ul>
										<?php endif;?>
									</li>
							<?php }?>
						<?php endforeach;?>
					<?php endif;?>
				</ul>

			</nav>
		</div>
	</section>
	    <footer class="footer hidden-xs no-padder text-center-nav-xs">
	        <div class="bg hidden-xs ">
	            <div class="dropdown dropup wrapper-sm clearfix">
	                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
	                    <span class="thumb-sm avatar pull-left m-l-xs">
	                        <img src="images/a3.png" class="dker" alt="...">
	                        <i class="on b-black"></i>
	                    </span>
	                    <span class="hidden-nav-xs clear">
	                        <span class="block m-l">
	                            <strong class="font-bold text-lt"><?php echo $this->params['username'];?></strong>
	                            <b class="caret"></b>
	                        </span>
	                        <span class="text-muted text-xs block m-l"><?php echo $this->params['role_name'];?></span>
	                    </span>
	                </a>
	                <ul class="dropdown-menu animated fadeInRight aside text-left">
	                    <li>
	                        <span class="arrow bottom hidden-nav-xs"></span>
	                        <a href="<?php echo \Yii::$app->urlManager->createUrl("config/base"); ?>">设置</a>
	                    </li>
	                    <li>
	                        <a href="<?php echo \Yii::$app->urlManager->createUrl("user/profile"); ?>" target="mainFrame" onclick="event.stopPropagation();">我的账号</a>
	                    </li>
	                    <li>
	                        <a href="#">
	                            <span class="badge bg-danger pull-right">3</span>
	                            通知
	                        </a>
	                    </li>
	                    <li>
	                        <a href="docs.html">帮助</a>
	                    </li>
	                    <li class="divider"></li>
	                    <li>
	                        <a href="<?php echo \Yii::$app->urlManager->createUrl("site/logout"); ?>" >登出</a>
	                    </li>
	                </ul>
	            </div>
	        </div>
	    </footer>
	<div class="modal fade" id="modal-form">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">×
					</button>
					<h4 class="modal-title" id="myModalLabel">
						模态框（Modal）标题
					</h4>
				</div>
				<div class="modal-body wrapper-lg">
					<div class="row">
						<div class="col-sm-6 b-r">
							<h3 class="m-t-none m-b">登陆</h3>
							<p>Sign in to meet your friends.</p>
							<form role="form">
								<div class="form-group">
									<label>Email</label>
									<input type="email" class="form-control" placeholder="Enter email">
								</div>
								<div class="form-group">
									<label>Password</label>
									<input type="password" class="form-control" placeholder="Password">
								</div>
								<div class="checkbox m-t-lg">
									<button type="submit" class="btn btn-sm btn-success pull-right text-uc m-t-n-xs"><strong>Log in</strong></button>
									<label>
										<input type="checkbox"> Remember me
									</label>
								</div>
							</form>
						</div>
						<div class="col-sm-6">
							<h4>Not a member?</h4>
							<p>You can create an account <a href="#" class="text-info">here</a></p>
							<p>OR</p>
							<a href="#" class="btn btn-primary btn-block m-b-sm"><i class="fa fa-facebook pull-left"></i>Sign in with Facebook</a>
							<a href="#" class="btn btn-info btn-block m-b-sm"><i class="fa fa-twitter pull-left"></i>Sign in with Twitter</a>
							<a href="#" class="btn btn-danger btn-block"><i class="fa fa-google-plus pull-left"></i>Sign in with Google+</a>
						</div>
					</div>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div>
